home *** CD-ROM | disk | FTP | other *** search
- on SoundAdjust
- global givState, givDebug
- set H to the mouseH
- set executeOnce to 1
- repeat while the mouseDown or executeOnce
- if executeOnce then
- set executeOnce to 0
- else
- set H to the mouseH
- end if
- if H < 32 then
- SetSoundCast(0)
- SetSound(givState, 0)
- next repeat
- end if
- if H < 44 then
- SetSoundCast(1)
- SetSound(givState, 1)
- next repeat
- end if
- if H < 54 then
- SetSoundCast(2)
- SetSound(givState, 2)
- next repeat
- end if
- if H < 66 then
- SetSoundCast(3)
- SetSound(givState, 3)
- next repeat
- end if
- if H < 76 then
- SetSoundCast(4)
- SetSound(givState, 4)
- next repeat
- end if
- if H < 87 then
- SetSoundCast(5)
- SetSound(givState, 5)
- next repeat
- end if
- if H < 98 then
- SetSoundCast(6)
- SetSound(givState, 6)
- next repeat
- end if
- if H < 112 then
- SetSoundCast(7)
- SetSound(givState, 7)
- next repeat
- end if
- if H < 122 then
- SetSoundCast(8)
- SetSound(givState, 8)
- next repeat
- end if
- SetSoundCast(9)
- SetSound(givState, 9)
- end repeat
- end
-
- on SetSoundCast val
- global givSOUNDINDICATORSPRITE
- set the castNum of sprite givSOUNDINDICATORSPRITE to 1220 + val
- SetVolume(val + 1)
- updateStage()
- end
-